package com.log.demo.controller;

import com.log.demo.service.ILogDemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <T>User：chk</T>
 * <T>Description：TODO</T>
 * <T>Update record(who,time,message):</T>
 */
@RestController
@RequestMapping("/log/demo")
public class LogDemoController {
    @Autowired
    private ILogDemoService logDemoService;

    @GetMapping
    public String logTest(@RequestParam String param) {
        logDemoService.logTest(param);
        return "这是日志测试的demo";
    }
}
